<!--<?php
print<<<EF
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>数据统计</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="styles/main.css" rel="stylesheet" type="text/css" />
<link href="templates/msystem/ljy.css" rel="stylesheet" type="text/css" />
<link href="ljy.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function clickall()
{
	var fobj = document.getElementById('fll');
	var num = fobj.length;
	for(var i=0;i<num;i++)
	{
		if(fobj.elements[i].type=='checkbox')
		{
			if(fobj.elements[i].checked==true)
			{
			   fobj.elements[i].checked=false;
			}
			else
			{
			   fobj.elements[i].checked=true;
			}
		}
	}
}
</script>
<script type="text/javascript" src="./javascript/Calendar.js"></script>
</head>
<base target="_self" />
<body style="text-align:left; font-size:12px;">
<div  id="toppath">推送页面-统计</div>

<form name="detebtc"  method="post" action="down.inc.php">
<input type="hidden" name="action" value="search" />
<table width="100%" border="0" cellpadding="3" cellspacing="0">
  <tr>
    <tH width="30%">按条件进行查询</tH>
    <tH width="70%">&nbsp;</tH>
  </tr>
  <tr>
    <td class="table_left"><span style=" margin:0 0 0 20px;">站名: </span></td>
    <td><span style=" margin:0 0 0 20px;">
	<select name="webname">
		<option value="-1">全部</option>
		<option value="1">btzero</option>
		<option value="2">cngba</option>
		<option value="3">cnxp</option>
		<option value="4">ydy</option>
		<option value="5">fr</option>
		<option value="6">btcool</option>
		<!--
		<option value="7">btchina</option>
		<option value="8">xunlei</option>-->
		<option value="9">其他</option>
	</select>
    </span></td>
  </tr>
  <tr>
    <td class="table_left"><span style=" margin:0 0 0 20px;">时间段:</span></td>
    <td><span style=" margin:0 0 0 20px;">
      <input type="text" class="input1" name="stime" size="20" value="" style="height:22px;width:95px;" onfocus="setday(this)"/>
      -
      <input type="text" class="input1" name="etime" size="20" value="" style="height:22px;width:95px;" onfocus="setday(this)"/>
      <input type="submit" name="sum" class="input1" style="background: #FFCC00; width:100PX;" value="查询" />
    </span></td>
  </tr>
  <tr>
<!--
EF;
$starttime=date('Y-m-d',$starttime);
$endtime=date('Y-m-d',$endtime);
if(!$stime||!$etime){
print<<<EF
-->
	<td colspan="2"><div align="center">你没有选择时间段。默认时间按段为：{$starttime}到{$endtime}</div></td>
<!--
EF;
}else{
print<<<EF
-->
    <td colspan="2"><div align="center">你选择了<span style="color:red">{$stimeo}</span>到<span style="color:red">{$etimeo}</span>时间段。</div></td>
<!--
EF;
}
print<<<EF
-->
    </tr>
</table>
</form>

<p><strong>推送页面统计:</strong></p>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <th width="34%" bgcolor="#008FD5">项目</th>
    <th width="66%">值</th>
  </tr>
  <tr>
    <td class="table_left">IP访问总数</td>
    <td>$infos[totalip]</td>
  </tr>
  <tr>
    <td class="table_left">推送页面显示次数</td>
    <td>$infos[totalpage]</td>
  </tr>
  <tr>
    <td class="table_left">下载原始种子次数</td>
    <td><strong>$infos[original]<strong></td>
  </tr>
  <tr>
    <td class="table_left">下载推荐种子次数</td>
    <td><strong>$infos[digest]</strong></td>
  </tr>
  <tr>
    <td class="table_left">下载原始种子次数/总的下载次数</td>
    <td><strong>$infos[opercent]%</strong><!--<div style="width:300px;height:10px;background-color:#FF6600"><div style="background-c
olor:#0000FF;height:10px;width:$infos[fopercent]px;"></div> </div>--></td>
  </tr>
  <tr>
    <td class="table_left">下载推荐种子次数/总的下载次数</td>
    <td><strong>$infos[dpercent]%</strong><!--<div style="width:300px;height:10px;background-color:#FF6600"><div style="background-c
olor:#0000FF;height:10px;width:$infos[fdpercent]px;"></div> </div>--></td>
  </tr>
<!--  <tr>
    <td class="table_left">总下载次数/总的显示次数</td>
    <td><strong>$infos[percent]%</strong><div style="width:300px;height:10px;background-color:#FF6600"><div style="background-color:
#0000FF;height:10px;width:$infos[fpercent]px;"></div></div></td>
  </tr>
 -->  <tr>
    <td class="table_left">来源网站统计</td>
    <td>$webinfos<a href="down.inc.php?action=listall" title="查看其他种子网站统计">其他网站:$other</a></td>
  </tr>
</table>

<br />
</body>
</html>
<!--
EF;
?>-->


